import { defineStore } from 'pinia';

export const useDrawerStore = defineStore('drawer', {
    state: () => ({
        drawer: false,
        refresh:false
    }),
    actions: {
        toggleDrawer() {
            this.drawer = !this.drawer;
        },
        openDrawer() {
            this.drawer = true;
        },
        closeDrawer() {
            this.drawer = false;
        },
        setRefreshMessages(value) {
            this.refresh = value;
        },
    },
});
